#ifndef __DEVICE_PTH_H__
#define __DEVICE_PTH_H__
#include "device_def.h"
#include "device_demo.h"

extern CircularBuffer strainCircBuf1;
extern CircularBuffer strainCircBuf2;
extern bool strainBufFlag;
extern bool strainRecordFlag;

extern CircularBuffer vibrationCircBuf1;
extern CircularBuffer vibrationCircBuf2;
extern bool vibrationBufFlag;
extern bool vibrationRecordFlag;

#define STRAIN_BUF_SIZE     32 * 100 * 14
#define VIBRATION_BUF_SIZE  48 * 100 * 4
int nodeCircBufInit(void);

int acqTerDataTableInit(const char* dbPath);
int recordStrainInfo(strainInfo_t strainInfo);
int recordVibrationInfo(vibrationInfo_t vibrationInfo);

int devCommPthInit(int devNum);

#endif /* __DEVICE_PTH_H__ */ 
